How to create video from Your Template.
The core of this feature is the use of a pre-designed Template. Each template includes a fixed layout, animations, background music, and a series of fillable Variables or placeholders.
When calling the API, you only need to specify the template_id
to use and provide a JSON object containing the specific values for all variables.
Before using this feature, you need to know:
template_id
).You can obtain this information in the following ways:
GET /v1/templates/custom
to get a list of all available templates and their details.There are two types of templates. One is in the public library, and the other is created by individuals.
The templates created by yourself can be directly copied with their IDs.
You can also obtain the template_id you need by getting the list of templates.
Through the following request, you can get the templates that you created yourself.
On the interface, define variables.
You can customize variable names for the elements in the template to facilitate your identification and replacement of them.
Tip: Currently, only script content, text, image, video and avatar
are supported.
Pass the parameters for generating the video to the template, and it will return a generated video_ID
.
How to replace the text, images and videos in the template.
Text Properties:
content: Text content.
Image Properties:
url:
URL of the image content.
Video Properties:
url:
URL of the video content.
Define the variable.
Modify Template Elements and Generate Video.
How to replace the scripts content within the template.
Script Properties:
content: Script content.
Define the variable.
Modify Template Elements and Generate Video.
How to replace the Avatar within the template.
Avatar Properties:
content: Avatar ID.
Modify the Avatar ID and Generate Video.
Callout Content.
We also have a feature that we don’t recommend to use very often: adding a tag to the script to implement pause in the video editor. It allows you to silence your video for a set amount of time.
Add a pause to the script with
<break time=\"2s\" />.
How to create video from Your Template.
The core of this feature is the use of a pre-designed Template. Each template includes a fixed layout, animations, background music, and a series of fillable Variables or placeholders.
When calling the API, you only need to specify the template_id
to use and provide a JSON object containing the specific values for all variables.
Before using this feature, you need to know:
template_id
).You can obtain this information in the following ways:
GET /v1/templates/custom
to get a list of all available templates and their details.There are two types of templates. One is in the public library, and the other is created by individuals.
The templates created by yourself can be directly copied with their IDs.
You can also obtain the template_id you need by getting the list of templates.
Through the following request, you can get the templates that you created yourself.
On the interface, define variables.
You can customize variable names for the elements in the template to facilitate your identification and replacement of them.
Tip: Currently, only script content, text, image, video and avatar
are supported.
Pass the parameters for generating the video to the template, and it will return a generated video_ID
.
How to replace the text, images and videos in the template.
Text Properties:
content: Text content.
Image Properties:
url:
URL of the image content.
Video Properties:
url:
URL of the video content.
Define the variable.
Modify Template Elements and Generate Video.
How to replace the scripts content within the template.
Script Properties:
content: Script content.
Define the variable.
Modify Template Elements and Generate Video.
How to replace the Avatar within the template.
Avatar Properties:
content: Avatar ID.
Modify the Avatar ID and Generate Video.
Callout Content.
We also have a feature that we don’t recommend to use very often: adding a tag to the script to implement pause in the video editor. It allows you to silence your video for a set amount of time.
Add a pause to the script with
<break time=\"2s\" />.